<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
<title><?= $sf_response->getTitle() ?></title>
<?php use_stylesheet('/sf/sf_admin/css/main') ?>

<div id="sf_admin_container">

<h1>Correct Inventory</h1>

<?php  if ($sf_user->hasFlash('notice')): ?>
<div class="save-ok">
<h2><?php echo __($sf_user->getFlash('notice')) ?></h2>
</div>
<?php endif; ?>

<?php echo form_tag('component/FixWarehouse', array(
  'id'        => 'sf_admin_edit_form',
  'name'      => 'sf_admin_edit_form',
)) ?>

<div class="form-row">
  <label for="bom_status">Inventory excel file:</label>  <div class="content">
      
   <input  size ="70" name="import_file" id="import_file" type ="text" value="<?php if (isset($importfile)) echo $importfile?>">
    </div>
</div>
<div class="form-row">
  <label for="bom_status">Product Code Column (A,B,C...):</label>  <div class="content">
    <input name="productcode" id="productcode"  size="3" type="text" value="<?php if (isset($productcode)) echo $productcode?>">
    </div>
</div>

<div class="form-row">
  <label for="bom_status">Closing Column (A,B,C...):</label>  <div class="content">  
      
    <input name="closing" id="closing"  size="3" type="text" value="<?php if (isset($closing)) echo $closing?>">

    </div>
</div>

<div class="form-row">
  <label for="bom_status">Start row:</label>  <div class="content">  
      
    <input name="startrow" id="startrow"  size="4" type="text" value="<?php if (isset($startrow)) echo $startrow?>">

    </div>
</div>



<div class="form-row">
  <label for="bom_status">End row:</label>  <div class="content">  
      
    <input name="endrow" id="endrow"  size="4" type="text" value="<?php if (isset($endrow)) echo $endrow?>">

    </div>
</div>

<div class="form-row">
  <label for="bom_status">Sheet number(1,2,3.. index from left to right):</label>  <div class="content">  
      
    <input name="sheetnumber" id="sheetnumber"  size="4" type="text" value="<?php if (isset($sheetnumber)) echo $sheetnumber?>">

    </div>
</div>

<ul class="sf_admin_actions">
  <li><?php echo submit_tag(__('correct inventory'), array (
  'name' => 'import',
  'class' => 'sf_admin_action_save',
  'confirm'=>'Are you sure want to correct inventory?',
)) ?></li>
</ul>
</form>
</div>